import request from '@/utils/request'
//* 获取员工列表
export const getEmployeeListApi = params => {
  return request.get('/sys/user', { params })
}
//* 添加子级菜单
export const addEmployeeApi = data => {
  return request.post('/sys/user/', data)
}
// * 获取员工详情
export const getEmployeeInfoApi = id => {
  return request.get('/sys/user/' + id)
}
// * 修改员工
export const editEmployeeApi = (data, arr) => {
  return request({
    url: '/sys/user/' + arr,
    method: 'put',
    data
  })
}
// * 删除员工详情
export const delEmployeeInfoApi = id => {
  return request.delete('/sys/user/' + id)
}
